package com.hdax.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hdax.common.to.es.SkuEsModel;
import com.hdax.common.utils.PageUtils;
import com.hdax.gulimall.product.entity.SkuInfoEntity;
import com.hdax.gulimall.product.vo.SkuItemVo;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * sku信息
 *
 * @author xiaohou
 * @email sunlightcs@gmail.com
 * @date 2023-04-19 16:31:21
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveSkuInfo(SkuInfoEntity skuInfo);

    PageUtils queryPageByCondtion(Map<String, Object> params);


    List<SkuInfoEntity> getSkuBySpuId(Long spuinfo);

    SkuItemVo item(Long skuId) throws ExecutionException, InterruptedException;
}

